package com.yiwyn.demo;


import com.yiwyn.demo.domain.Shop;
import com.yiwyn.demo.utils.modify.ModifyComponent;
import com.yiwyn.demo.utils.modify.entity.ModifyEntity;

import java.lang.reflect.InvocationTargetException;

public class Main {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {


        Shop shop = new Shop();
        shop.setShopAddress("老地址");

        shop.setOpenStatus("00");

        Shop shop1 = new Shop();
        shop1.setShopAddress("新地址");
        shop1.setOpenStatus("01");

        ModifyEntity record = ModifyComponent.record(shop, shop1);
        System.out.println(record);

    }
}